<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
  
  <process id="CompetingSubprocessEndProcess" isExecutable="true">
  
    <startEvent id="start" />
    <sequenceFlow id="flow1" sourceRef="start" targetRef="subProcess" />
    
    <subProcess id="subProcess">
      <startEvent id="innerStart" />
      <sequenceFlow id="flow2" sourceRef="innerStart" targetRef="fork" />
      
      <parallelGateway id="fork" />
      <sequenceFlow id="flow3" sourceRef="fork" targetRef="wait1" />
      <sequenceFlow id="flow4" sourceRef="fork" targetRef="wait2" />
      <sequenceFlow id="flow5" sourceRef="fork" targetRef="wait3" />
      
      <userTask id="wait1" />
      <userTask id="wait2" />
      <userTask id="wait3" />
    </subProcess>
    
    <sequenceFlow id="flow6" sourceRef="subProcess" targetRef="end" />
    <endEvent id="end" />
    
  </process>

</definitions>